package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@TableName("rc_district")
@ApiModel(value = "District", description = "地区表")
@Data
public class District  implements Serializable {
    private static final long serialVersionUID = 1L;

     /**
     * 自增id
     */
     @ApiModelProperty("id")
     @TableId
    private Short  districtId;

    /**
     * 父级关系
     */
    @ApiModelProperty("父级关系")
    private Short  pid;

    /**
     * 地区名称
     */
    @ApiModelProperty("地区名称")
    private String district;

    /**
     * 子属关系
     */
    @ApiModelProperty("子属关系")
    private Byte  level;

    @TableField(exist = false)
    @ApiModelProperty("下级数量")
    private Long total;


}
